/**
 * 
 */
package cn.tonyqiu.wonuly.client.rpc;

import com.google.gwt.core.client.GWT;

/**
 * @author <a href="mailto:tony.qiu.smart@gmail.com">Tony Qiu</a>
 *
 */
public class RPCGenerator {
	
	private static WonulyServiceAsync wonulyAsync;
	private static BillServiceAsync billAsync;
	private static LookupServiceAsync  lookupAsync;
	
	public static WonulyServiceAsync getWonulyAsync() {
		if(wonulyAsync ==  null) {
			wonulyAsync = GWT.create(WonulyService.class);
		}
		return wonulyAsync;
	}
	
	public static BillServiceAsync getBillAsync() {
		if(billAsync == null) {
			billAsync = GWT.create(BillService.class);
		}
		return billAsync;
	}
	
	public static LookupServiceAsync getLookupAsync() {
		if(lookupAsync == null) {
			lookupAsync = GWT.create(LookupService.class);
		}
		return lookupAsync;
	}

}
